
import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class testDirectionBitSet {

	@Test
	public void test() 
	{
		
		
		DirectionBitSet dbs = new DirectionBitSet();
		
		Move.Direction[] directions = new Move.Direction[]{ 
				Move.Direction.Up, 
				Move.Direction.Up, 
				Move.Direction.Down, 
				Move.Direction.Left, 
				Move.Direction.Left, 
				Move.Direction.Right };
		
		StringBuilder sb = new StringBuilder();
		
		for ( Move.Direction direction : directions )
		{
			dbs.append( direction );
			sb.append( direction );
		}
		
		System.out.println( sb.toString() );	
		System.out.println( dbs.toString() );		
		
		assertEquals( sb.toString(), dbs.toString() );
		
		
	}

}
